﻿using System.Net.Sockets;
using eLoop;

namespace eNets.CBK.Sockets;

sealed class TcpSocketSndOper : ASocketSndOper
{
    public TcpSocketSndOper(Socket socket, ITaskScheduler scheduler, SocketCompletedDelegate sndCompleted) 
        : base(socket, sndCompleted, scheduler)
    {
    }

    protected override bool SocketOperationAsync(Socket socket, SocketArgs args)
    {
        return socket.SendAsync(args);
    }
}